package ink.yuanchu.picachoframework.dao;

import ink.yuanchu.picachoframework.entity.RoleAssociatedPermissions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ziyuan
 * @since 2021-03-19
 */
@Repository
public interface RoleAssociatedPermissionsMapper extends BaseMapper<RoleAssociatedPermissions> {

    /**
     * 根据角色id和权限id  删除  这个角色的某个权限
     * @param roleId
     * @param PermissionsId
     * @return
     */
    RoleAssociatedPermissions deleteByRoleIdAndPermissionsId(String roleId,String PermissionsId);
}
